﻿using UnityEngine;
using System.Collections;

public class ChuCaiController : MonoBehaviour
{

    public string chu;

    public string Chu
    {
        get { return chu; }
        set { chu = value; }
    }

    // Use this for initialization
	void Start () {
        string str = "chucai/" +chu;
        SpriteRenderer spriteRenderer = gameObject.GetComponent<SpriteRenderer>();
        spriteRenderer.sprite = (Sprite)Resources.Load(str, typeof(Sprite));
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
